package com.bjpowernode.crm.settings.mapper;

import com.bjpowernode.crm.settings.domain.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 根据账号和密码查询用户信息
     *
     * @param loginAct
     * @param saltPwd
     * @return
     */
    User selectByLoginActAndPwd(@Param("loginAct") String loginAct, @Param("saltPwd") String saltPwd);
}